class Person {
    constructor(name) {
      this.name = name;
    }
    getName() {
      return this.name;
    }
  }
  let p = new Person("2222");
  console.log(p.getName());
  class Student extends Person {
    constructor(name, number) {
      super(name);
      this.number = number;
    }
    getNumber() {
      return this.number + this.name;
    }
  }
  let s = new Student("student", "33");
  console.log(s.getName());
  console.log(s.getNumber());
  